home *** CD-ROM | disk | FTP | other *** search
- property pPlaceToGo, pTimeLeaving, pReadyToGo
- global gHaveSound, gCurrTrack
-
- on beginSprite me
- pTimeLeaving = 0
- updateTimeInfo()
- stopSounds()
- end
-
- on exitFrame me
- exitKeysPressed()
- if the shiftDown then
- sendAllSprites(#keyWasPressed, #Shift, "Shift")
- else
- if the controlDown then
- sendAllSprites(#keyWasPressed, #Control, "Control")
- else
- if the optionDown then
- sendAllSprites(#keyWasPressed, #ALT, "Alt")
- end if
- end if
- end if
- if (the milliSeconds > pTimeLeaving) and (pTimeLeaving > 0) then
- if pReadyToGo then
- go(pPlaceToGo)
- else
- pReadyToGo = 1
- go(the frame)
- end if
- else
- go(the frame)
- end if
- end
-
- on beginMusic me
- if gHaveSound then
- sound(1).play(member("cracermusic"))
- sound(1).volume = 120
- end if
- end
-
- on startPressed me
- if gCurrTrack < 2 then
- me.LeaveFrame("Load Course")
- else
- me.LeaveFrame("Menu")
- end if
- end
-
- on LeaveFrame me, whichFrame
- timeToLeave = 1500
- sendAllSprites(#LeaveThisFrame, timeToLeave)
- pPlaceToGo = whichFrame
- pTimeLeaving = the milliSeconds + timeToLeave
- end
-